package cn.easy.kitchen.data;

import cn.easy.kitchen.Application;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;

public class ImportData {

    public static void main(String[] args) {

        ApplicationContext ctx = SpringApplication.run(Application.class, args);

        ImportFromExcel importFromExcel = ctx.getBean(ImportFromExcel.class);
        ImportFromDB importFromDB = ctx.getBean(ImportFromDB.class);

        importFromExcel.importMaterial();
        importFromExcel.importCustomer();
        importFromExcel.importBom();
        importFromExcel.importNutrition();

        importFromDB.importOrder();
    }
}
